const mongoose = require('mongoose')
const { exerciseModel } = require('./../models/exerciseModel');
const { studentModel } = require('./../models/studentModel');


const collectionSchema = new mongoose.Schema({
    exerciseId: {
        type: mongoose.SchemaTypes.ObjectId,
        ref: 'exerciseModel'
    },
    studentId: {
        type: mongoose.SchemaTypes.ObjectId,
        ref: 'studentModel'
    }
})

mongoose.model('collectionModel',collectionSchema,'collections');

module.exports.collectionModel = 'collectionModel';